Skip to main content

Content Steering Overview

Content Steering is included in HLS and DASH streaming standards, that lets video players switch between CDN providers while a stream is playing. Instead of relying on DNS resolution as a method for switching between CDN providers, the player periodically asks a steering server which CDN it should use right now, and moves to that CDN without interrupting playback.

IO River provides a managed steering server that makes this decision for each viewer, based on the viewer's ISP and country, and on the real-time performance data IO River collects from all your CDN providers.

Content Steering is supported for:

  • HLS
  • DASH
  • Custom HTTP - intended when your player cannot use the standard protocol implementation.

How it works​

  • The player loads the manifest file from your service.
    • The manifest lists several pathways to the same content: one for each CDN provider, plus a default pathway.
    • The manifest also points to the IO River steering server.
  • The player requests a steering manifest from the steering server.
    • This is a small JSON file that lists the pathways in order of preference.
  • The player fetches segments from the most preferred pathway.
    • Depending on the pathway availability, the player might fetch segments from non-preferred pathways.
  • After a short while, the player requests a new steering manifest and, if the priorities change, switches to the new top pathway.

Steering decisions are made at the ISP level, meaning for each combination of ASN and country. Two viewers on different ISPs can therefore be directed to different CDN providers at the same moment.

Steering Options​

A single IO River service supports several steering options at the same time, so you can serve all your players from one configuration:

OptionUse for
DNSPlayers that do not support HLS or DASH steering, and all player requests for the manifest files
HLSHLS streams
DASHDASH streams
HTTPCustomers who use custom players
warning

Content Steering is available for all CDN providers except VCDN.

Details​

Pathways​

Each CDN provider is represented by a pathway:

  • IO River identifies pathways by the lowercase name of the CDN provider, for example fastly, akamai or cloudfront.
  • Each pathway requires a dedicated domain that bypasses the steering and allows the player to fetch the segment directly from the preferred CDN provider.
  • You must add these domains to the IO River service, and configure them properly in the DNS.
  • See Steering Domains

In addition, every service includes a default pathway:

  • This is the regular DNS-based path to your service's main domain, and it is the pathway that players use when they do not support steering, or when IO River has no information on which provider to prefer.

The steering server bases its decisions on the performance information that IO River collects from your CDN providers and players. If there is no information available for a viewer's ISP, the server sets the preferred pathway to be the default pathway.

important

Your application generates and stores the manifest files which contain the various pathways. The pathway IDs in your manifest files and the pathway names in the steering manifest must match exactly. Currently, IO River uses the provider name in lowercase as the pathway ID (for example fastly), so your manifest files must use the same names.

Steering Domains​

To let a player reach a specific CDN provider, each pathway needs its own domain name that resolves only to that provider. For every domain of your service, IO River requires one dedicated steering domain per CDN provider.

For example, if your service's main domain is channel5.com, and you use Akamai, Fastly and CloudFront, you need:

PathwayDomainPoints to
defaultchannel5.comIO River (DNS steering)
akamaiakamai.channel5.comThe Akamai CNAME
fastlyfastly.channel5.comThe Fastly CNAME
cloudfrontcloudfront.channel5.comThe CloudFront CNAME

All of these domains must be accessible over HTTPS, make sure the certificate attached to the service covers all of them.

Steering Rate​

IO River controls the steering rate: how often players refresh the steering decision. Higher rate lets the player react to problems faster, but increases the load. IO River sets the rate automatically according to the stream type:

Stream typeRate
VOD5 minutes
Live30 seconds

How to set up Content Steering​

Content Steering requires a one-time setup both in the IO River platform and in your own environment, including the manifest files generated by your origin.

In the IO River platform​

  • Configure an alias for each domain, per CDN provider.
    • For example, add fastly.channel5.com, akamai.channel5.com and cloudfront.channel5.com as aliases of the channel5.com domain.
  • Configure a certificate that covers all the domains.
    • It must cover your main domain and all of its steering domains.
    • A wildcard certificate (for example *.channel5.com) is the easiest way to do this.
  • Define the DNS records for the steering domains.
    • Create a CNAME record for each steering domain, pointing to the CNAME of the relevant CDN provider.
  • Enable content steering in your players.

In your manifest files​

Change the manifest files that your origin generates, so that they:

  • Include multiple pathways: a default pathway, and a pathway per CDN provider
  • Reference the IO River steering server

The manifest file and the steering manifest depend on each other:

  • The manifest file must contain multiple pathways to every segment, each identified by a pathway ID.
  • The steering manifest must reference these pathway IDs.

Pathway IDs must therefore be the lowercase names of your CDN providers, as described in Pathways.

Example manifest files​

HLS​

Add the EXT-X-CONTENT-STEERING tag to your multi-variant playlist, and list each variant stream once per pathway. The following example is for a service with three CDN providers: Akamai, Fastly and CloudFront.

#EXT-X-CONTENT-STEERING:SERVER-URI="https://steering.ioriver.io/hls/92211fbc",PATHWAY-ID="default"

#EXT-X-STREAM-INF:PATHWAY-ID="default"
https://mydomain.com/video12.m3u8

#EXT-X-STREAM-INF:PATHWAY-ID="akamai"
https://akamai.mydomain.com/video12.m3u8

#EXT-X-STREAM-INF:PATHWAY-ID="fastly"
https://fastly.mydomain.com/video12.m3u8

#EXT-X-STREAM-INF:PATHWAY-ID="cloudfront"
https://cloudfront.mydomain.com/video12.m3u8

Replace 92211fbc with the steering ID of your service. The PATHWAY-ID on the EXT-X-CONTENT-STEERING tag is the pathway the player uses until it receives its first steering manifest.

DASH​

Add the ContentSteering element to your MPD, and define a BaseURL for each service location.

<MPD ...>
<ContentSteering defaultServiceLocation="default" queryBeforeStart="true">
https://steering.ioriver.io/dash/92211fbc
</ContentSteering>

<BaseURL serviceLocation="default">https://mydomain.com/</BaseURL>
<BaseURL serviceLocation="akamai">https://akamai.mydomain.com/</BaseURL>
<BaseURL serviceLocation="fastly">https://fastly.mydomain.com/</BaseURL>
<BaseURL serviceLocation="cloudfront">https://cloudfront.mydomain.com/</BaseURL>

...
</MPD>

Setting queryBeforeStart="true" makes the player request a steering decision before it downloads its first segment, instead of starting on the default service location.

Enable Content steering in your players​

Players that natively support HLS or DASH Content Steering need no changes beyond the manifest modifications above:

PlayerEnabledMinimum VersionComments
hls.jsAutomaticallySupports HLS Content Steering from v1.4.0
dash.jsAutomaticallySupports DASH Content Steering from v4.5.0
ShakaAutomaticallySupports DASH and HLS Content Steering from v.5.0.0

Players that do not support steering continue to work, and use the default pathway through standard DNS-based steering.

For custom players, IO River provides HTTP-based steering. The player requests the steering manifest directly from the steering server and applies the pathway priorities itself.